<template>
  <div>
    <span>{{ arr.shopName }}</span>
    <input @click="add(index)" type="button" value="+" />
    <span> {{ arr.count }}</span>
    <input @click="subfn(index)" type="button" value="-" />
  </div>
</template>

<script>
export default {
  props: ["arr", "index"],
  methods: {
    add(index) {
      this.$emit("addfn", index);
    },
    subfn(index) {
      this.$emit("subfn", index);
    },
  },
};
</script>

<style>
</style>